package com.itheima.service.impl;


import com.itheima.dao.UserDao;
import com.itheima.service.UserService;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.io.IOException;

public class    UserServiceImpl implements UserService {

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }


    public void transfer(String outName, String inName, Double money) {
        userDao.inMoney(outName,money);
//        int i = 1/0;
        userDao.outMoney(inName,money);
    }



}
